﻿#ifndef REGIONALPINS_H
#define REGIONALPINS_H

#include <QObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QMap>
#include <QList>
#include <QSet>

class RegionalPins : public QObject
{
    Q_OBJECT
public:
    explicit RegionalPins(QObject *parent = nullptr);
    virtual ~RegionalPins();

    void initPin();
    static RegionalPins * gestance();

    QSet<int> getPins(QString regins);
    int getRegionalTimers(QString regins);

signals:

private:
    static RegionalPins  * m_regionalPins;

    QMap<QString , QSet<int> > m_regionalNumbers;
    QMap<QString , int > m_regionalTimers;
};

#endif // REGIONALPINS_H
